Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

the document is in mime format, not notes rich text format

the short answer:

you need to use the MIME apis to access the document data. as andre suggested, see the designer help for information on the MIME apis. (and be sure to set the session property, ConvertMIME, to false or you will get a mime->cd conversion when you access the document.)

some background:

regarding the "file attachment": it's not really an attachment, per se.

here are the doc properties from your original post:
      Field Name: $FILE
      Data Type: Attached Object
      Data Length: 44 bytes
      Seq Num: 1
      Dup Item ID: 0
      Field Flags: ATTACH SIGN SEAL SUMMARY

      Object Type: File
      Object ID: 00034B02
      Object Length: 43068
      File Name: mime.htm
      Flags:
      Host: 2304
      Compression Type: NONE
      Encoding Type:
      File Attributes: RW PUBLIC
      File Size: 43068
      File Created: 16/11/2010 23:44:24
      File Modified: 16/11/2010 23:44:24

note the Host type (in red bold). usually this would be MSDOS for a typical file attachment (or Mac for a Mac attachment). the value 2304 is HOST_STREAM and it's used when we store large bytestreams in file attachments, but don't want them handled as regular file attachments by the Notes client; e.g., OLE objects are stored this way as are large MIME parts which don't fit in a single Body item.

in your case, the mime.htm attachment corresponds to a Body item with a data type of MIME. if you look at the doc properties for the doc's Body item(s), you should see one with a content-type header with a type/subtype of text/html. however, rather than containing the html for the part. it will contain the name of the attachment which contains the html -- mime.htm; a level of indirection, if you will.

when MIME parts are larger than about 40KB, we 'redirect' them to attachments; you'll note that the attachment above is about 42KB. these file attachments will have a host type of HOST_STREAM as does the mime.htm attachment in your example.

you must use the MIME apis in order to successfully access the content of documents such as this one.


Feedback response number PLYS8BARR8 created by ~Judy Umluvitchakoi on 11/17/2010

Mime.htm $File disappears??????????... (~James Lopveluk... 17.Nov.10)
. . Are you accessing the body as MIME ... (~Bill Frokimari... 17.Nov.10)
. . . . Not sure I understand but here's so... (~James Lopveluk... 17.Nov.10)
. . the document is in mime format, not... (~Jennifer Desve... 17.Nov.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS